package com.sunda.spmsorder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 工厂请购单详情关联表
 * </p>
 *
 * @author Wayne
 * @since 2021-02-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ORDER_WERKS_DTL")
@ApiModel(value="OrderWerksDtl对象", description="工厂请购单详情关联表")
public class OrderWerksDtl implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "工厂请购单号")
    @TableField("SPMS_ID")
    private String spmsId;

    @ApiModelProperty(value = "工厂请购单行号")
    @TableField("ROW_ID_WERKS")
    private int rowIdWerks;

    @ApiModelProperty(value = "车间请购单号")
    @TableField("SPMS_WS_ID")
    private String spmsWsId;

    @ApiModelProperty(value = "车间请购单行号")
    @TableField("ROW_ID_WS")
    private int rowIdWs;

    @ApiModelProperty(value = "java生成唯一ID，用于关联工厂请购单表。新增数据时关联获取工厂请购单编号。")
    @TableField("UUID")
    private String uuid;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getSpmsId() {
        return spmsId;
    }

    public void setSpmsId(String spmsId) {
        this.spmsId = spmsId;
    }

    public String getSpmsWsId() {
        return spmsWsId;
    }

    public void setSpmsWsId(String spmsWsId) {
        this.spmsWsId = spmsWsId;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public int getRowIdWerks() {
        return rowIdWerks;
    }

    public void setRowIdWerks(int rowIdWerks) {
        this.rowIdWerks = rowIdWerks;
    }

    public int getRowIdWs() {
        return rowIdWs;
    }

    public void setRowIdWs(int rowIdWs) {
        this.rowIdWs = rowIdWs;
    }

    @Override
    public String toString() {
        return "OrderWerksDtl{" +
                "spmsId='" + spmsId + '\'' +
                ", rowIdWerks=" + rowIdWerks +
                ", spmsWsId='" + spmsWsId + '\'' +
                ", rowIdWs=" + rowIdWs +
                ", uuid='" + uuid + '\'' +
                '}';
    }
}
